Sfoglia il codice sorgente

Make sure that cgm deletion propagates to settings

Sam King 1 anno fa
parent
commit
426a46fd54
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      Trio/Sources/APS/FetchGlucoseManager.swift

+ 2 - 0
Trio/Sources/APS/FetchGlucoseManager.swift

@@ -125,6 +125,8 @@ final class BaseFetchGlucoseManager: FetchGlucoseManager, Injectable {
             cgmGlucoseSourceType: CGMType.none,
             cgmGlucosePluginId: ""
         )
+        settingsManager.settings.cgm = .none
+        settingsManager.settings.cgmPluginIdentifier = ""
     }
 
     func saveConfigManager() {